<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>项目部署完全指南</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
        }
        .serif-font {
            font-family: 'Noto Serif SC', serif;
        }
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .section-divider {
            background: linear-gradient(to right, transparent, #e5e7eb, transparent);
            height: 1px;
        }
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            margin-top: 0.2rem;
            color: #667eea;
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        .tool-badge {
            transition: all 0.2s ease;
        }
        .tool-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <h1 class="text-5xl md:text-7xl font-bold mb-6 serif-font">项目部署完全指南</h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">从开发到生产环境的专业部署实践</p>
            <div class="flex justify-center space-x-6 text-lg">
                <div class="flex items-center">
                    <i class="fas fa-rocket mr-2"></i>
                    <span>自动化部署</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-cloud mr-2"></i>
                    <span>云原生架构</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-infinity mr-2"></i>
                    <span>持续集成</span>
                </div>
            </div>
        </div>
    </section>

    <!-- Introduction Section -->
    <section class="py-16 px-6">
        <div class="max-w-4xl mx-auto">
            <div class="bg-white rounded-2xl shadow-xl p-10">
                <p class="text-lg leading-relaxed text-gray-700">
                    <span class="drop-cap serif-font">项</span>目的部署是将开发好的应用程序或系统放到生产环境中，以便用户能够访问和使用。项目部署的过程可以因项目类型、技术栈和部署需求而有所不同。本指南将深入探讨现代化的部署方法、工具和最佳实践，帮助您构建高效、可靠的部署流程。
                </p>
            </div>
        </div>
    </section>

    <!-- Deployment Methods Section -->
    <section class="py-16 px-6 bg-gray-100">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">部署方法对比</h2>
            
            <div class="grid md:grid-cols-2 gap-8">
                <!-- Manual Deployment Card -->
                <div class="bg-white rounded-2xl shadow-lg p-8 card-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                            <i class="fas fa-hand-paper text-2xl text-purple-600"></i>
                        </div>
                        <h3 class="text-2xl font-bold">手动部署</h3>
                    </div>
                    
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <i class="fas fa-cog text-purple-500 mt-1 mr-3"></i>
                            <div>
                                <h4 class="font-semibold mb-1">过程</h4>
                                <p class="text-gray-600">通过手动将应用程序文件上传到服务器，配置必要的环境和服务，然后启动应用程序。</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <div>
                                <h4 class="font-semibold mb-1">优点</h4>
                                <p class="text-gray-600">简单直接，适合小规模的项目或临时性部署。</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <i class="fas fa-times-circle text-red-500 mt-1 mr-3"></i>
                            <div>
                                <h4 class="font-semibold mb-1">缺点</h4>
                                <p class="text-gray-600">不适合大规模和频繁的部署，容易出错，缺乏自动化和可重复性。</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Automated Deployment Card -->
                <div class="bg-white rounded-2xl shadow-lg p-8 card-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-16 h-16 bg-indigo-100 rounded-full flex items-center justify-center mr-4">
                            <i class="fas fa-robot text-2xl text-indigo-600"></i>
                        </div>
                        <h3 class="text-2xl font-bold">自动化部署</h3>
                    </div>
                    
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <i class="fas fa-cog text-indigo-500 mt-1 mr-3"></i>
                            <div>
                                <h4 class="font-semibold mb-1">过程</h4>
                                <p class="text-gray-600">使用自动化工具和脚本来执行部署过程，包括代码检出、构建、测试、打包、部署和发布。</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <div>
                                <h4 class="font-semibold mb-1">优点</h4>
                                <p class="text-gray-600">提高效率和一致性，减少人为错误，支持频繁的部署和更新。</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <i class="fas fa-times-circle text-red-500 mt-1 mr-3"></i>
                            <div>
                                <h4 class="font-semibold mb-1">缺点</h4>
                                <p class="text-gray-600">需要设置和维护自动化工具和脚本，初期配置复杂。</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Deployment Process Visualization -->
    <section class="py-16 px-6">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">部署流程可视化</h2>
            <div class="bg-white rounded-2xl shadow-xl p-8">
                <div class="mermaid">
                    graph LR
                        A[准备环境] --> B[构建和打包]
                        B --> C[部署应用]
                        C --> D[配置服务]
                        D --> E[启动和监控]
                        E --> F[测试和验证]
                        F --> G[发布和更新]
                        
                        style A fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style B fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                        style C fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style D fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                        style E fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style F fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                        style G fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                </div>
            </div>
        </div>
    </section>

    <!-- Tools and Technologies Section -->
    <section class="py-16 px-6 bg-gray-100">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">部署工具生态系统</h2>
            
            <!-- CI/CD Tools -->
            <div class="mb-12">
                <h3 class="text-2xl font-bold mb-6 flex items-center">
                    <i class="fas fa-sync-alt mr-3 text-purple-600"></i>
                    CI/CD 工具
                </h3>
                <div class="grid md:grid-cols-4 gap-4">
                    <div class="bg-white rounded-xl p-6 text-center tool-badge">
                        <i class="fab fa-jenkins text-4xl text-red-600 mb-3"></i>
                        <h4 class="font-bold">Jenkins</h4>
                        <p class="text-sm text-gray-600 mt-2">开源自动化服务器</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 text-center tool-badge">
                        <i class="fab fa-gitlab text-4xl text-orange-600 mb-3"></i>
                        <h4 class="font-bold">GitLab CI/CD</h4>
                        <p class="text-sm text-gray-600 mt-2">内置持续集成</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 text-center tool-badge">
                        <i class="fas fa-code-branch text-4xl text-green-600 mb-3"></i>
                        <h4 class="font-bold">Travis CI</h4>
                        <p class="text-sm text-gray-600 mt-2">GitHub 集成服务</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 text-center tool-badge">
                        <i class="fas fa-circle-notch text-4xl text-blue-600 mb-3"></i>
                        <h4 class="font-bold">CircleCI</h4>
                        <p class="text-sm text-gray-600 mt-2">多语言支持</p>
                    </div>
                </div>
            </div>

            <!-- Configuration Management -->
            <div class="mb-12">
                <h3 class="text-2xl font-bold mb-6 flex items-center">
                    <i class="fas fa-tools mr-3 text-indigo-600"></i>
                    配置管理和自动化工具
                </h3>
                <div class="grid md:grid-cols-3 gap-4">
                    <div class="bg-white rounded-xl p-6 text-center tool-badge">
                        <i class="fas fa-play text-4xl text-red-500 mb-3"></i>
                        <h4 class="font-bold">Ansible</h4>
                        <p class="text-sm text-gray-600 mt-2">基于 YAML 的自动化</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 text-center tool-badge">
                        <i class="fas fa-utensils text-4xl text-orange-500 mb-3"></i>
                        <h4 class="font-bold">Chef</h4>
                        <p class="text-sm text-gray-600 mt-2">Ruby 配置脚本</p>
                    </div>
                    <div class="bg-white rounded-xl p-6 text-center tool-badge">
                        <i class="fas fa-dog text-4xl text-yellow-600 mb-3"></i>
                        <h4 class="font-bold">Puppet</h4>
                        <p class="text-sm text-gray-600 mt-2">声明式配置管理</p>
                    </div>
                </div>
            </div>

            <!-- Containerization -->
            <div class="mb-12">
                <h3 class="text-2xl font-bold mb-6 flex items-center">
                    <i class="fas fa-box mr-3 text-blue-600"></i>
                    容器化和编排
                </h3>
                <div class="grid md:grid-cols-3 gap-4">